def foo():
    return [1, 2]

x = foo()[1]